package hk.xing.boot.saToken;

import cn.dev33.satoken.fun.strategy.SaCreateTokenFunction;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.function.BiFunction;
import java.util.function.Function;

@Slf4j
@Component
public class SystemCreateTokenSaStrategy implements SaCreateTokenFunction {


    @Override
    public String apply(Object o, String s) {
        return "123456";
    }

    @Override
    public <V> BiFunction<Object, String, V> andThen(Function<? super String, ? extends V> after) {
        return SaCreateTokenFunction.super.andThen(after);
    }
}
